package org.metasketch.editor.links;

import java.util.HashMap;
import java.util.Map;

public class LinkRegistry {

	Map<String, ILink> linkPerType = new HashMap<String, ILink>();

	public void register(String type, ILink link) {
		// if (toolHan)
		linkPerType.put(type, link);
	}

	public ILink get(String name) throws Throwable {
		return linkPerType.get(name);

	}

}
